home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 10828 / 10828.xpi / chrome / content / options-tabs.xul < prev    next >
Extensible Markup Language  |  2010-02-10  |  11KB  |  249 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
  3. <?xml-stylesheet href="chrome://newtabking/skin/ntkoverlay.css" type="text/css"?>
  4.  
  5. <!DOCTYPE prefwindow SYSTEM "chrome://newtabking/locale/newtabking.dtd">
  6.  
  7. <prefwindow title="&options.window.label;"
  8.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.     ondialogaccept="savePrefs();"
  10.     ondialogcancel="window.close();"
  11.     buttons="accept, cancel">
  12.  
  13.     <prefpane id="tabgeneral" label="&tab.label.general;" onpaneload="newtabkingPrefwindowButtons();">
  14.         <preferences/>
  15.         <groupbox>
  16.             <checkbox label="&checkbox.autofocus;" id="autoFocus-Pref"/>
  17.             <checkbox label="&checkbox.homepage;" id="loadInNewWindow-Pref"/>
  18.             <checkbox label="&checkbox.newtab;" id="loadInNewTab-Pref"/>
  19.             <checkbox label="&checkbox.openinnewtab;" id="mostUsedinNewTab-Pref"/>
  20.             <checkbox label="&checkbox.toolbar;" id="ntkToolbar-pref"/>
  21.             <checkbox label="&checkbox.statusbar;" id="ntkStatusbar-pref"/>
  22.             <checkbox label="&checkbox.showtips;" id="ntkTip-pref"/>
  23.             <checkbox label="&checkbox.clipboardurl;" id="ntkClipboard-pref"/>
  24.             <checkbox label="&checkbox.showthemes;" id="themes-pref"/>
  25.             <checkbox label="&checkbox.showsharing;" id="sharing-pref"/>
  26.             <checkbox label="&checkbox.showheader;" id="ntkHeaderSearch-pref"/>
  27.             <checkbox label="&checkbox.optimizeperf;" id="ntkTabPerfOn-pref"/>
  28.             <separator/>
  29.             <grid flex="1">
  30.                 <columns>
  31.                     <column/>
  32.                     <column/>
  33.                 </columns>
  34.                 <rows>
  35.                     <row align="center">
  36.                         <label value="&label.searchengine;"/>
  37.                         <menulist id="NTKSearchEngine-pref" value="4">
  38.                             <menupopup>
  39.                                 <menuitem label="Ask" value="0"/>
  40.                                 <menuitem label="Bing" value="1"/>
  41.                                 <menuitem label="Google.com" value="2"/>
  42.                                 <menuitem label="New Tab King (powered by Google)" selected="true" value="3"/>
  43.                                 <menuitem label="Wikipedia" value="4"/>
  44.                                 <menuitem label="Yahoo" value="5"/>
  45.                                 <menuitem label="Google.co.uk" value="6"/>
  46.                                 <menuitem label="Google.es" value="7"/>
  47.                                 <menuitem label="Google.fr" value="8"/>
  48.                                 <menuitem label="Google.de" value="9"/>
  49.                                 <menuitem label="Google.it" value="10"/>
  50.                                 <menuitem label="Google.ru" value="11"/>
  51.                                 <menuitem label="Google.com.br" value="12"/>
  52.                                 <menuitem label="Baidu" value="13"/>
  53.                                 <menuitem label="Yandex" value="14"/>
  54.                                 <menuitem label="Kvasir" value="15"/>
  55.                                 <menuitem label="Google.no" value="16"/>
  56.                                 <menuitem label="Google.co.nz" value="17"/>
  57.                                 <menuitem label="Google.com.au" value="18"/>
  58.                                 <menuitem label="Search.com" value="19"/>
  59.                                 <menuitem label="Swagbucks.com" value="20"/>
  60.                                 <menuitem label="Google.at" value="21"/>
  61.                             </menupopup>
  62.                         </menulist>
  63.                     </row>
  64.                     <row align="center">
  65.                         <label value="&label.pagetitle;"/>
  66.                         <textbox id="ntkTitleStr-Pref"/>
  67.                     </row>
  68.                     <row align="center">
  69.                         <label value="&label.tabtitle;"/>
  70.                         <textbox id="ntkTitleTabStr-Pref"/>
  71.                     </row>
  72.                 </rows>
  73.             </grid>
  74.         </groupbox>
  75.         <separator height="20"/>
  76.     </prefpane>
  77.     <prefpane id="tabsearchshortcuts" label="&tab.label.shortcuts1;" onpaneload="newtabkingPrefwindowButtons();">
  78.         <preferences/>
  79.         <groupbox>
  80.             <caption label="&tab.label.shortcuts1;"/>
  81.             <hbox id="searchshortcutsdesc">
  82.                 <label width="525px">&label.searhcshortcutsexp;</label>
  83.             </hbox>
  84.             <label value="&label.searchshortcutsexp2;"/>
  85.             <separator/>
  86.             <tree id="searchShortcutsList" flex="1" rows="10"  hidecolumnpicker="true" enableColumnDrag="true">
  87.                 <treecols>
  88.                     <treecol id="searchShortcutNameCol" label="&label.shortcut;" width="100"/>
  89.                     <splitter class="tree-splitter"/>
  90.                     <treecol id="searchShortcutPathCol" flex="1" label="&label.desturl;"/>
  91.                 </treecols>
  92.                 <treechildren id="searchShortcutsListChildren"/>
  93.             </tree>
  94.             <separator class="thin"/>
  95.             <hbox pack="end">
  96.                 <button id="searchRemoveShortcutsID" label="&label.removeselectedshortcutsbtn;" oncommand="removeSelectedFromTree('searchShortcutsList')"/>
  97.             </hbox>
  98.             <grid flex="1">
  99.                 <columns>
  100.                     <column flex="1"/>
  101.                     <column flex="5"/>
  102.                 </columns>
  103.                 <rows>
  104.                     <row>
  105.                         <label value="&label.shortcut;"></label>
  106.                         <label value="&label.desturl;"></label>
  107.                     </row>
  108.                     <row>
  109.                         <textbox id="x2-Pref"/>
  110.                         <textbox id="x1-Pref"/>
  111.                         <button id="searchShortcutAddBtn" label="&label.addshortcutbtn;" oncommand="AddSearchShortcutBtn()"/>
  112.                     </row>
  113.                 </rows>
  114.             </grid>
  115.         </groupbox>
  116.         <separator height="20"/>
  117.     </prefpane>
  118.     <prefpane id="tabshortcuts" label="&tab.label.shortcuts2;" onpaneload="newtabkingPrefwindowButtons();">
  119.         <preferences/>
  120.         <groupbox>
  121.             <caption label="&tab.label.shortcuts2;"/>
  122.             <checkbox label="&label.enableshortcuts;" id="enableShortcuts-Pref" oncommand="enableShortcuts();"/>
  123.             <separator class="thin"/>
  124.             <tree id="shortcutsList" flex="1" rows="10" hidecolumnpicker="true" enableColumnDrag="true">
  125.                 <treecols>
  126.                     <treecol id="shortcutNameCol" flex="1" label="&label.shortcut;"/>
  127.                     <splitter class="tree-splitter"/>
  128.                     <treecol id="shortcutPathCol" flex="2" label="&label.path;"/>
  129.                     <splitter class="tree-splitter"/>
  130.                     <treecol id="shortcutIconCol" flex="1" label="&label.icon;"/>
  131.                 </treecols>
  132.                 <treechildren id="shortcutsListChildren">
  133.                 </treechildren>
  134.             </tree>
  135.             <separator class="thin"/>
  136.             <hbox>
  137.                 <button id="moveDown" label="&label.movedownbtn;" oncommand="moveDown('shortcutsList')"/>
  138.                 <button id="moveUp" label="&label.moveupbtn;" oncommand="moveUp('shortcutsList')"/>
  139.                 <spacer flex="1"/>
  140.                 <button id="removeShortcutsID" label="&label.removeselectedshortcutsbtn;" oncommand="removeSelectedFromTree('shortcutsList')"/>
  141.             </hbox>
  142.             <separator class="thin"/>
  143.             <groupbox>
  144.                 <grid>
  145.                     <columns>
  146.                         <column width="110"/>
  147.                         <column flex="2"/>
  148.                         <column/>
  149.                         <column flex="2"/>
  150.                     </columns>
  151.                     <rows>
  152.                         <row>
  153.                             <label value="&label.shortcut;"></label>
  154.                             <label value="&label.newshortcutpathfield;"></label>
  155.                             <spacer/>
  156.                             <label value="&label.newshortcuticonfield;"></label>
  157.                         </row>
  158.                         <row align="center">
  159.                             <textbox id="addShortcutName-Pref"/>
  160.                             <textbox id="addShortcutPath-Pref"/>
  161.                             <button id="shortcutPathBtnID" label="..." tooltiptext="&label.newshortcutpathfield.browse;" style="min-width:1.5em" oncommand="browseLoc('addShortcutPath-Pref', false, false)"/>
  162.                             <textbox id="addShortcutIcon-Pref" readonly="true"/>
  163.                             <button id="shortcutIconPathBtnID" label="..." tooltiptext="&label.newshortcuticonfield.browse;" style="min-width:1.5em" oncommand="browseLoc('addShortcutIcon-Pref', false, true)"/>
  164.                         </row>
  165.                     </rows>
  166.                 </grid>
  167.                 <separator class="thin"/>
  168.                 <hbox pack="center">
  169.                     <button id="shortcutAddBtn" label="&label.addshortcutbtn;" oncommand="addShortcutBtn()"/>
  170.                 </hbox>
  171.             </groupbox>
  172.         </groupbox>
  173.     </prefpane>
  174.     <prefpane id="tabmostusedsites" label="&tab.label.mostusedsites;" onpaneload="newtabkingPrefwindowButtons();">
  175.         <preferences/>
  176.         <groupbox>
  177.             <caption label="&label.mostusedsites.desc;"/>
  178.             <hbox align="center">
  179.                 <label value="&label.mostused.max;"></label>
  180.                 <textbox id="maxMostUsed-Pref" type="number" min="1" size="3" max="999"/>
  181.             </hbox>
  182.             <label value="&label.mostused.excludedesc;"></label>
  183.             <listbox flex="1" id="blacklist-Pref"  seltype="multiple"/>
  184.             <separator class="thin"/>
  185.             <hbox pack="end">
  186.                 <button label="&label.websites.remove;" oncommand="removeSelectedFromList('blacklist-Pref');"/>
  187.             </hbox>
  188.         </groupbox>
  189.     </prefpane>
  190.     <prefpane id="tabrecenttabs" label="&tab.label.recenttabs;" onpaneload="newtabkingPrefwindowButtons();">
  191.         <groupbox>
  192.             <caption label="&label.recenttabs;"/>
  193.             <hbox align="center">
  194.                 <label value="&label.recentlyclosedtabs.desc;"></label>
  195.                 <textbox id="maxRecentlyClosedTabs-Pref" type="number" min="0" size="2" max="50"/>
  196.             </hbox>
  197.             <label value="&label.recentlyclosedtabs.excludedesc;"></label>
  198.             <listbox id="blacklistTabs-Pref" flex="1" seltype="multiple">
  199.             </listbox>
  200.             <separator class="thin"/>
  201.             <hbox pack="end">
  202.                 <button label="&label.websites.remove;" oncommand="removeSelectedFromList('blacklistTabs-Pref');"/>
  203.             </hbox>
  204.         </groupbox>
  205.     </prefpane>
  206.     <prefpane id="tabsitesyouwilllove" label="&tab.label.miscs;" onpaneload="newtabkingPrefwindowButtons();">
  207.         <preferences/>
  208.         <groupbox>
  209.             <caption label="&label.sitesyouwilllove;"/>
  210.             <label>&label.sitesyouwilllove.desc1;</label>
  211.             <label>&label.sitesyouwilllove.desc2;</label>
  212.             <checkbox id="enableSuggested-Pref" label="&label.sitesyouwilllove.checkboxdesc;"/>
  213.         </groupbox>
  214.         <groupbox>
  215.             <caption label="&label.background;"/>
  216.             <checkbox label="&label.background.enabledesc;" id="enableBackground-Pref" oncommand="enableBackground();"/>
  217.             <hbox align="center">
  218.                 <label value="&label.background.path;"></label>
  219.                 <textbox id="backgroundPath-Pref" readonly="true" flex="1"/>
  220.                 <button id="backgroundBrowseButton" label="&label.background.browsebtn;" oncommand="browseLoc('backgroundPath-Pref', true, true);"/>
  221.             </hbox>
  222.             <separator class="thin"/>
  223.             <hbox align="center">
  224.                 <label value="&label.background.repeatdesc;"></label>
  225.                 <menulist id="backgroundRepeat-Pref" value="0" height="25px">
  226.                     <menupopup>
  227.                         <menuitem label="&label.background.repeathoriz;" selected="true" value="0"/>
  228.                         <menuitem label="&label.background.repeatvert;" value="1"/>
  229.                         <menuitem label="&label.background.repeatboth;" value="2"/>
  230.                         <menuitem label="&label.background.repeatnone;" value="3"/>
  231.                     </menupopup>
  232.                 </menulist>
  233.                 <label value="&label.background.colordesc;"></label>
  234.                 <textbox id="backgroundColor-Pref" value="eaeaea" height="25px"/>
  235.             </hbox>
  236.             <separator class="thin"/>
  237.             <label value="&label.background.notice;"></label>
  238.         </groupbox>
  239.         <separator height="20"/>
  240.     </prefpane>
  241.  
  242.     <hbox id="ntkbuttons" flex="1" pack="end">
  243.         <button dlgtype="accept" id="newtabkingAcceptBtn" oncommand="savePrefs();window.close();" label="&newtabking.ok.label;" hidden="true"/>
  244.         <button dlgtype="cancel" id="newtabkingCancelBtn" oncommand="window.close();" label="&newtabking.cancel.label;" hidden="true"/>
  245.     </hbox>
  246.  
  247.     <script type="application/x-javascript" src="chrome://newtabking/content/newtabking-options.js"/>
  248.  
  249. </prefwindow>